﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    AutoEventWireup="true" CodeFile="ProviderCarMakeOnly.aspx.cs" Inherits="Provider_CarInsurance_ProviderCarMakeOnly" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>Provider Car Make</h1>
        
        <fieldset>
        <legend>CAR MAKE</legend>
            <dl>
                <dt><label>CX Car Make</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlCXCarMake" runat="server" AutoPostBack="true" Width="220px" OnSelectedIndexChanged="ddlCXCarMake_SelectedIndexChanged">
                    </asp:DropDownList> <asp:RequiredFieldValidator ID="rfvProviderCarMake" runat="server" ErrorMessage="Select Car Make"
                        ControlToValidate="ddlCXCarMake" InitialValue="-1" ValidationGroup="makemodel"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt><label>My Car Make</label></dt>
                <dd>
                    <asp:TextBox ID="txtMyCarMake" runat="server" Width="220px"></asp:TextBox>
                </dd>
            </dl>
            <dl>
                <dt><label>Rate</label></dt>
                <dd>
                    <asp:TextBox ID="txtRate" runat="server" MaxLength="8"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvRate" runat="server" ErrorMessage="Enter Rate Value"
                        ControlToValidate="txtRate" Display="Dynamic" ValidationGroup="makemodel"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revCCRate" runat="server" ControlToValidate="txtRate"
                        ErrorMessage="Rate value is not valid." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"
                        ValidationGroup="makemodel"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt><label>Is Refer?</label></dt>
                <dd>
                    <asp:RadioButtonList ID="rdoRefer" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">Yes</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">No</asp:ListItem>
                    </asp:RadioButtonList>
                    <asp:TextBox runat="server" ID="txtprovidercarmakeid" Visible="false" Text="0"></asp:TextBox>
                    <asp:TextBox runat="server" ID="txtprovidercarmakemodelid" Visible="false" Text="0"></asp:TextBox>
                </dd>
            </dl>
            <dl>
                <dt><label>Status</label></dt>
                <dd>
                    <asp:CheckBox ID="chkStatus" runat="server" />
                </dd>
            </dl>
            <dl>
                <dt><label>Auth Code</label></dt>
                <dd>
                   <asp:TextBox ID="txtAuthCode" runat="server" TextMode="Password" MaxLength="12" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAuthCode" runat="server" ControlToValidate="txtAuthCode"
                        ErrorMessage="Enter auth code." ValidationGroup="carcapacity"></asp:RequiredFieldValidator>
                </dd>
            </dl>
        </fieldset>    
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" CssClass="left_btn" ImageUrl="~/Provider/images/buttons/back1.gif"
                OnClick="ibtBack_Click" />
            <asp:ImageButton ID="btnSave" runat="server" CssClass="float_btn" ImageUrl="~/Provider/images/buttons/save1.gif"
                OnClick="btnSave_OnClick" ValidationGroup="makemodel" />
        </fieldset>
        <asp:Label ID="lblMessage" runat="server" CssClass="successmsg"></asp:Label>
    </div>
</asp:Content>
